Convert in-memory pdf to byte[]

Posted by daft on Stack Overflow See other posts from Stack Overflow or by daft
Published on 2010-04-12T08:41:41Z Indexed on 2010/04/12 8:43 UTC
Read the original article Hit count: 149

Filed under:
|
|
|

I'm writing a websercive in C# that will generate pdf-files and send back to the caller as a byte[]. The pdf file is generated using a third party component, but I'm struggling with the conversion. The pdf is just an in-memory object in the web service, and I can't find any good way of converting the generated pdf to a byte[] before returning it to the caller. Any advice on this?

© Stack Overflow or respective owner

Related posts about web-services

Related posts about c#